import req from "../req";
import service from '@/utils/request'
import tool from '@/utils/tool';
// 获取项目列表
export function ProjectList() {
	var a = {
		client_id: 1,
		api_token: req('Interactive/ProjectList'),
		token:tool.data.get("TOKEN")
	}
	console.log(a);
	return service({
		url: `Interactive/ProjectList`,
		method: 'post',
		data: { ...a }
	});
}

// 分析报告输入
export function strategy(data) {
	var a = {
		client_id: 1,
		api_token: req('Interactive/ReportSub'),
		token:tool.data.get("TOKEN")
	}
	return service({
		url: `Interactive/ReportSub`,
		method: 'post',
		data: { ...data, ...a }
	});
}


// 分析报告输入
export function EsgSub(data) {
	var a = {
		client_id: 1,
		api_token: req('Interactive/EsgSub'),
		token:tool.data.get("TOKEN")
	}
	return service({
		url: `Interactive/EsgSub`,
		method: 'post',
		data: { ...data, ...a }
	});
}


// 经济性相关
export function EconomySubs(data) {
	var a = {
		client_id: 1,
		api_token: req('Interactive/EconomySub'),
		token:tool.data.get("TOKEN")
	}
	return service({
		url: `Interactive/EconomySub`,
		method: 'post',
		data: { ...data, ...a }
	});
}

// 经济性相关
export function CosySubs(data) {
	var a = {
		client_id: 1,
		api_token: req('Interactive/CosySub'),
		token:tool.data.get("TOKEN")
	}
	return service({
		url: `Interactive/CosySub`,
		method: 'post',
		data: { ...data, ...a }
	});
}


// 单位转换
export function UnitSubs(data) {
	var a = {
		client_id: 1,
		api_token: req('Interactive/UnitSub'),
		token:tool.data.get("TOKEN")
	}
	return service({
		url: `Interactive/UnitSub`,
		method: 'post',
		data: { ...data, ...a }
	});
}


// 能源相关
export function RelatedSubs(data) {
	var a = {
		client_id: 1,
		api_token: req('Interactive/RelatedSub'),
		token:tool.data.get("TOKEN")
	}
	return service({
		url: `Interactive/RelatedSub`,
		method: 'post',
		data: { ...data, ...a }
	});
}

// 能源相关
export function FacilitySubs(data) {
	var a = {
		client_id: 1,
		api_token: req('Interactive/FacilitySub'),
		token:tool.data.get("TOKEN")
	}
	return service({
		url: `Interactive/FacilitySub`,
		method: 'post',
		data: { ...data, ...a }
	});
}
  // 项目群设置
export function GroupSub(data) {
	var a = {
	  client_id:1,
	  api_token:req('Interactive/GroupSub'),
	  token:tool.data.get("TOKEN")
	}
	return service({
	  url: `Interactive/GroupSub`,
	  method: 'post',
	  data:{...data,...a}
	});
  }


//   文件上传
  export function UploadsFile(data) {
	var a = {
	  client_id:1,
	  api_token:req('UploadsFile'),
	  token:tool.data.get("TOKEN")
	}
	return service({
	  url: `UploadsFile`,
	  method: 'post',
	  data:{...data,...a}
	})
  }


  //   能源碳
  export function EnergySub(data) {
	var a = {
	  client_id:1,
	  api_token:req('Interactive/EnergySub'),
	  token:tool.data.get("TOKEN")
	}
	return service({
	  url: `Interactive/EnergySub`,
	  method: 'post',
	  data:{...data,...a}
	});
  }

    //   能源碳
	export function AdminInputs(data) {
		var a = {
		  client_id:1,
		  api_token:req('Interactive/AdminInput'),
		  token:tool.data.get("TOKEN")
		}
		return service({
		  url: `Interactive/AdminInput`,
		  method: 'post',
		  data:{...data,...a}
		});
	  }

  // 项目基本信息设置
  export function InfoSub(data) {
	var a = {
	  client_id:1,
	  api_token:req('Interactive/InfoSub'),
	  token:tool.data.get("TOKEN")
	}
	return service({
	  url: `Interactive/InfoSub`,
	  method: 'post',
	  data:{...data,...a}
	});
  }